package vip.kqsy.cloud.blog.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import vip.kqsy.cloud.blog.server.pojo.dto.ListBlogInfoDTO;
import vip.kqsy.cloud.blog.server.pojo.entity.BlogInfo;
import vip.kqsy.cloud.blog.server.pojo.vo.ArchiveVO;
import vip.kqsy.cloud.blog.server.pojo.vo.ListBlogInfoVO;
import vip.kqsy.cloud.blog.server.pojo.vo.ListInteractiveBlogVO;

import java.util.List;

/**
 * <p>
 * 博客表 Mapper 接口
 * </p>
 *
 * @author cenjunjie
 * @since 2023-05-03
 */
public interface BlogInfoMapper extends BaseMapper<BlogInfo> {

    List<ListBlogInfoVO> list(@Param("dto") ListBlogInfoDTO dto);

    List<ArchiveVO> archive();

    List<ListInteractiveBlogVO> listInteractive(@Param("type") Integer type, @Param("userId") Long userId);
}
